package com.ruibang.glass.purchase.domain.req;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 采购入库物品信息
 * </p>
 *
 * @author wujie
 * @since 2024-05-08
 */

@ApiModel(value ="采购入库物品信息")
@Data
public class MaterialInventoryItem extends BaseEntity {

    @ApiModelProperty(value = "主键Id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "物料名称")
    private String itemName;
    @ApiModelProperty(value = "物品编码")
    private String itemCode;
    @ApiModelProperty(value = "类型")
    private String itemType;
    @ApiModelProperty(value = "物品Id")
    private String itemId;
    @ApiModelProperty(value = "入库编号")
    private String inventoryNumber;
    @ApiModelProperty(value = "规格型号")
    private String specificationModel;
    @ApiModelProperty(value = "数量")
    private Double quantity;
    @ApiModelProperty(value = "单位")
    private String unit;
    @ApiModelProperty(value = "批次号")
    private String pcNumber;
    @ApiModelProperty(value = "良品数")
    private Integer goodProduct;
    @ApiModelProperty(value = "不良品数")
    private Integer badProduct;
    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;
    @ApiModelProperty(value = "仓库编码")
    private String warehouseCode;
    @ApiModelProperty(value = "条形编码")
    private String barcodeNumber;
    @ApiModelProperty(value = "生产日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate productDate;
    @ApiModelProperty(value = "到货日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate arrivalDate;
    @ApiModelProperty(value = "保质期(月)")
    private Double expiredNum;
    @ApiModelProperty(value = "保质到期日")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate expiredDate;
    @ApiModelProperty(value = "含税单价")
    private BigDecimal taxInclusiveUnitPrice;
    @ApiModelProperty(value = "含税总价")
    private BigDecimal taxInclusiveTotalPrice;
    @ApiModelProperty(value = "税率")
    private BigDecimal taxRate;
    @ApiModelProperty(value = "不含税单价")
    private BigDecimal taxExclusiveUnitPrice;
    @ApiModelProperty(value = "含量(万分比)")
    private Double contentRatio;
}
